<template>
    <router-view></router-view>
</template>

<script>
export default {
  name: 'app',
  data () {
    return {
    }
  },
  methods: {
  },
  computed: {
  },
  mounted: function () {
    // 暂时在此启动全局监听，改变store的状态（监听放在最前面，防止当前页面无法更新store）
    this.H.receivestore()
    // 刷新时要保存到store里的数据，防止刷新页面丢失数据
    let userinfo = this.H.GL('userinfo') || {}
    let localsetting = this.H.GL('localsetting')
    this.H.sendstore('userinfo', userinfo)
    if (localsetting) {
      this.H.sendstore('localsetting', localsetting)
    }
  }
}
</script>

<style>
.aicon{
  color: rgba(31, 31, 31, 0.7);
  cursor:pointer;
}
</style>
